﻿@using ViVa.ActiveDirectory;

@{
    //Code om rechten te bepalen
    PermissionService.setPermission();
  }



@{
    if (ViewData["SecurityLevel"] != null)
    {
        if (!(bool)Session["isAdmin"])
        {
            string rechten = (string)ViewData["SecurityLevel"];
            if (!(bool)Session[rechten])
            {
                Response.Redirect("~/home/geenrechten");
            } 
        }
    }  
}